package hulppakket;

public class Ray {

	private Vector3f direction;
	private Point3f origin;

	public Ray(Point3f origin, Vector3f direction) {
		this.origin = origin;
		this.direction = direction;
	}

	public Vector3f getDirection() {
		return direction;
	}

	public Point3f getOrigin() {
		return origin;
	}

	public void setDirection(Vector3f direction) {
		this.direction = direction;
	}

	public void setOrigin(Point3f origin) {
		this.origin = origin;
	}

	@Override
	public String toString() {
		return "Point: " + origin.x + ", " + origin.y + ", " + origin.z + "   "
				+ "Direction: " + direction.x + ", " + direction.y + ", "
				+ direction.z;
	}
}
